package org.ww.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.ww.common.utils.R;
import org.ww.product.feign.fallback.SeckillFeignServiceImplFallback;

/**
 * @program: gmall
 * @description:
 * @author: ww
 * @create: 2024-11-07 15:51
 **/
@FeignClient(value = "gmall-seckill" ,fallback = SeckillFeignServiceImplFallback.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
